package com.xkdx.guangguang.fragment.shop;

import java.util.HashMap;

import com.xkdx.guangguang.fragment.BaseFragment;
import com.xkdx.guangguang.module.network.AbsModule;
import com.xkdx.guangguang.module.network.HttpTask;
import com.xkdx.guangguang.module.network.JsonHttpRequest;

public class ShopPersisenter extends HttpTask {

	public ShopPersisenter(BaseFragment baseFragment) {
		this.baseFragment = baseFragment;
		this.connectTimeout = 5000;
		this.soTimeOut = 5000;
		requestInstent = new JsonHttpRequest();
	}

	@Override
	protected void onPostExecute(HashMap<String, AbsModule> result) {
		if (baseFragment != null) {
			if (ShopFragment.isLoadMore) {
				baseFragment.showLoadMore(result);
			} else {
				baseFragment.showLoaded(result);
			}
		}
	}
}
